<?php
include_once 'produit.class.php';

class Cahier extends Produit {
    
    private $dimension;
    private $lignage;
    
    public function Cahier($reference, $prix, $dimension, $lignage){
        parent::__construct($reference,$prix);
        $this->dimension = $dimension;
        $this->lignage = $lignage;
    }
    
    public function getDimension() {
        return $this->dimension;
    }

    public function getLignage() {
        return $this->lignage;
    }
    
    public function __toString(){
        return parent::__toString()." ".$this->dimension." ".$this->lignage ;
    }

    public function getClasse(){
        return "Cahier";
    }
    
}



?>
